<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
            let that = this
            uni.getSystemInfo({
            	success(res) {
                    console.log('App Launch',res)
					that.globalData.isPC = false
                    that.globalData.systemInfo = res
                    that.globalData.windowHeight = res.screenHeight*(750 / res.windowWidth)
                    that.globalData.windowWidth = res.screenWidth*(750 / res.windowWidth)
					if (res.system.toLowerCase().indexOf('windows') > -1 || res.system.toLowerCase().indexOf('mac') > -1) {
						that.globalData.isPC = true;
					}
                }
            })
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
